<div class="form-group col-md-12 {$form[type].extra_class|default=''}" id="form_group_{$form[type].name}">
  <label class="col-xs-12" for="{$form[type].name}">{$form[type].title}</label>
  <div class="form-controls">
    <input
        class="form-control" 
        type="text"
        id="{$form[type].name}"
        name="{$form[type].name}" 
        value="{$form[type].value|default=''}"
        data-provide="datepicker"
        data-today-highlight="true"
        data-autoclose="false"
        data-date-format="{if isset($form[type].format)}{$form[type].format}{else /}yyyy-mm-dd{/if}"
        placeholder="{if isset($form[type].format)}{$form[type].format}{/if}"
        {$form[type].extra_attr|default=''}>
    {notempty name="form[type].remark"}
    <small class="form-text text-muted">{$form[type].remark|raw|clear_js}</small>
    {/notempty}
  </div>
</div>
{assign name="useDatepicker" value="1" /}